<!-- <p>login works!</p> -->
<div class="mainBody">
    <d-toast [value]="msgs" [life]="3000"></d-toast>
    <div class='box'>
        <h2>Excel表格</h2>
        <div class="inputBox">
            <input type="text" [(ngModel)]="userInfo.userAcc">
            <label >用户名</label>
        </div>
        <div class="inputBox">
            <input type="password" [(ngModel)]="userInfo.password">
            <label >密码</label>
        </div>
        <div class="code">
            <input type="text" [(ngModel)]="verificationCode" placeholder="请输入验证码" class="input-val">
            <canvas id="canvas" class="canvasClass" (click)="canvasClick()"></canvas>
        </div>
        <button (click)="loginVerification()">登录</button>
        <!-- <button (click)="test()">登录</button> -->
    </div>
</div>